//通过vue-router实现路由
import {createRouter, createWebHashHistory} from "vue-router";
import {constantRoute} from "./routes.ts";

//创建路由
const router = createRouter({
    //路由模式
    history: createWebHashHistory(),
    routes: constantRoute
});

export default router;